package com.cuijq.ms.visitordesign.v3;

import com.cuijq.ms.visitordesign.v3.impl.PPTFile;
import com.cuijq.ms.visitordesign.v3.impl.PdfFile;
import com.cuijq.ms.visitordesign.v3.impl.WordFile;

/**
 * @author by CuiJQ
 * @Classname Compressor
 * @Description Compressor Description
 * @Date 2021/5/30 22:37
 */
public class Compressor implements Visitor {


  @Override
  public void visit(PdfFile pdfFile) {
    System.out.println("Compress PDF.");
  }

  @Override
  public void visit(PPTFile pdfFile) {
    System.out.println("Compress PPT.");
  }

  @Override
  public void visit(WordFile pdfFile) {
    System.out.println("Compress WORD.");
  }
}
